package cn.chengpengper.shortlink.service;

import cn.chengpengper.shortlink.controller.request.SendCodeRequest;
import cn.chengpengper.shortlink.util.JsonData;

import javax.servlet.http.HttpServletRequest;

/**
 * @author huchengpeng
 * @version v1.0.0
 * @date 2023/8/21 00:25
 * @description 通知服务
 */
public interface NotifyService {
    /**
     * <p>
     * 发送验证码
     * </p>
     *
     * @param keyTemplate     图形验证码在Redis的Key
     * @param request         HttpServletRequest
     * @param sendCodeRequest 发送请求
     * @return
     */
    JsonData sendCode(String keyTemplate, HttpServletRequest request, SendCodeRequest sendCodeRequest);
}
